<!DOCTYPE html>
<html >
<meta charset="utf-8">
<head >
<#include "/page/include.ftl">

</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-mq-add">
			<input name="id"  type="hidden" id="id" name="fileid" value="${id!}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label ">源系统名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" id="name" name="name" value="${name!}"/>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">文件路径：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="filepath" id="filepath" value="${filepath!}"  />
				</div>
			</div>

			<div class="form-group">
            	<label class="col-sm-3 control-label">作业名称：</label>
            	<div class="col-sm-8">
            		<input class="form-control" type="text" name="jobname" id="jobname"  value="${jobname!}"  readonly=readonly />
            	</div>
            	</div>


			<div class="form-group">
                <label class="col-sm-3 control-label">插件名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="pluginjar" id="pluginjar" value="${pluginjar!}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">插件类：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="className" id="className" value="${classname!}">
                </div>
            </div>

            <div class="form-group">
				<label class="col-sm-3 control-label">数据分隔符：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="split" id="split"  value="${datasplit!}" />
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">定时任务表达式：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="corn" id="corn"  value="${cronexpress!}" />
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">扫描的包：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="scanpackage" id="scanpackage"  value="${scanpackage!}" />
				</div>
			</div>
			
		</form>
	</div>
	
	<script src="${rc.contextPath}/static/ajax/libs/select/select2.js"></script>
	<script>

	$("#form-mq-add").validate({
            	onkeyup: false,
            	rules:{
            	    "filepath":{

            	       required:true,
            	    },
            	    "name":{

                       required:true,
                    },
            		jobname:{
            			required:true,
            		},
            		pluginjar:{
            			required:true,
            		},
            		corn:{
            		    required:true

            		},
            		split:{
                       required:true

                    },
                    className:{
                       required:true

                    }
            	},
            	messages: {
                    "menuName": {
                        remote: "菜单已经存在"
                    }
                },
                focusCleanup: true
            });
       function submitHandler() {
          if ($.validate.form()) {

             $.operate.save(ctx + "file/update", $('#form-mq-add').serialize());
          }

	    }
        
        


        
		
		
    </script>
</body>
</html>
